package com.ruoyi.project.system.modularshow.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.system.modularshow.domain.ModularShow;
import com.ruoyi.project.system.modularshow.mapper.ModularShowMapper;
import com.ruoyi.project.system.modularshow.service.IModularShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 模块展示Service业务层处理
 *
 * @author LCL
 * @date 2021-12-08
 */
@Service
public class ModularShowServiceImpl implements IModularShowService
{
    @Autowired
    private ModularShowMapper modularShowMapper;

    /**
     * 查询模块展示
     *
     * @param id 模块展示ID
     * @return 模块展示
     */
    @Override
    public ModularShow selectModularShowById(String id)
    {
        return modularShowMapper.selectModularShowById(id);
    }

    /**
     * 查询模块展示列表
     *
     * @param modularShow 模块展示
     * @return 模块展示
     */
    @Override
    public List<ModularShow> selectModularShowList(ModularShow modularShow)
    {
        return modularShowMapper.selectModularShowList(modularShow);
    }

    /**
     * 新增模块展示
     *
     * @param modularShow 模块展示
     * @return 结果
     */
    @Override
    public int insertModularShow(ModularShow modularShow)
    {
        return modularShowMapper.insertModularShow(modularShow);
    }

    /**
     * 修改模块展示
     *
     * @param modularShow 模块展示
     * @return 结果
     */
    @Override
    public int updateModularShow(ModularShow modularShow)
    {
        return modularShowMapper.updateModularShow(modularShow);
    }

    /**
     * 删除模块展示对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteModularShowByIds(String ids)
    {
        return modularShowMapper.deleteModularShowByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除模块展示信息
     *
     * @param id 模块展示ID
     * @return 结果
     */
    @Override
    public int deleteModularShowById(String id)
    {
        return modularShowMapper.deleteModularShowById(id);
    }
}
